﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 发布形式表
    /// </summary>
    public interface IReleaseFormService
    {
        public Task<int> AddRfAsync(string title, string details);
        public Task<int> UpdateRfAsync(int id, string title, string details);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteRfsAsync(int id);
        public Task<List<ReleaseFormDto>> GetAllRfAsync(int deleteId = 1);
        public Task<List<ReleaseFormDto>> GetByNameAsync(string title, int deleteId = 1);
        public Task<ReleaseFormDto> GetByIdAsync(int id);
    }
}
